﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Search.aspx.vb" Inherits="Search" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>

		<asp:XmlDataSource ID="animals" runat="server" DataFile="Animals.xml" OnLoad="animals_Load" />

		<asp:DataGrid runat="server" DataSourceID="animals" AutoGenerateColumns="false">
			<Columns>
				<asp:BoundColumn HeaderText="Species" DataField="Species" />
				<asp:TemplateColumn>
					<ItemTemplate>
						<asp:HyperLink runat="server" NavigateUrl='<%# GetVirtualPath( "detail", New With { .Name=Eval( "Name" ) } ) %>' Text='<%# Eval( "Name" ) %>' />
					</ItemTemplate>
				</asp:TemplateColumn>
				<asp:BoundColumn HeaderText="Nickname" DataField="Nickname" />
				<asp:BoundColumn HeaderText="Namesake" DataField="Namesake" />
			</Columns>
		</asp:DataGrid>

    </div>

	<div><a href='<%= GetVirtualPath( Nothing ) %>'><< Return to Welcome page</a></div>
    </form>
</body>
</html>
